package com.baiwei.vpnapi.dao;

import com.baiwei.vpnapi.entity.AppVersion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @program: vpnapi
 * @description: version dao
 * @author: Mr. Stone
 * @create: 2020-03-11 00:49
 **/
@Mapper
public interface AppVersionMapper extends BaseMapper<AppVersion> {
    @Select("select * from app_version where platform = #{platform} order by update_time DESC limit 1")
    AppVersion getCurrentVersion(String platform);
}
